package com.example.modelsystem.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;


@Data
@Builder
@AllArgsConstructor
@ApiModel(value = "RecentChatEntity", description = "最近聊天实体类")
public class RecentChatEntity {
    @ApiModelProperty(value = "记录Id", example = "1")
    private Integer id;
    @ApiModelProperty(value = "用户Id", example = "1")
    private Integer userId;
    @ApiModelProperty(value = "头像文件", example = "notification.png")
    private String icon;
    @ApiModelProperty(value = "联系人备注", example = "通知消息")
    private String username;
    @ApiModelProperty(value = "最近一条消息内容", example = "XXX请求添加你为好友")
    private String lastMessage;
    @ApiModelProperty(value = "最近一条消息时间", example = "2024-05-25 08:30:00")
    private String lastMessageTime;
}
